package cn.mediinfo.dianzidp.remote;

import java.util.HashMap;
import java.util.Map;

public class RequestData extends HashMap<String, Object> {

   public final class RequestDataBuilder {
        private final RequestData requestData;

        private RequestDataBuilder() {
            requestData = new RequestData();
        }

       public RequestDataBuilder requestData() {
            return new RequestDataBuilder();
        }

        public RequestDataBuilder putAll(Map<String, Object> map) {
            requestData.putAll(map);
            return this;
        }

        public RequestDataBuilder put(String key, Object data) {
            requestData.put(key, data);
            return this;
        }

        public RequestData build() {
            return requestData;
        }
    }
}